package cn.yotta.user.web.autoconfiguration.provider;

import cn.yotta.user.web.autoconfiguration.exception.UserLoginException;

/**
 * @author wyaoyao
 * @date 2023/3/10 17:57
 */
public interface UserReadFromTokenProvider {

    /**
     * 根据token获取登录用户
     * @param token
     * @return
     */
    LoginUser findUserByToken(String token)  throws UserLoginException;
}
